﻿<!DOCTYPE html>
<html lang="en">
   <head>
      <!-- BEGIN META --> 
	  <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="description" content="">
      <meta name="author" content="Custom Theme">
	  <!-- END META -->
     
      <!-- BEGIN SHORTCUT ICON -->
	  <link rel="shortcut icon" href="img/favicon.ico">
	  <!-- END SHORTCUT ICON -->
      <title>会议列表</title>
	  
	  <!-- BEGIN STYLESHEET --> 
      <link href="__PUBLIC__/Admin/css/bootstrap-3.3.4.css" rel="stylesheet"><!-- BOOTSTRAP CSS -->
      <link href="__PUBLIC__/Admin/css/bootstrap-reset.css" rel="stylesheet"><!-- BOOTSTRAP CSS -->
      <link href="__PUBLIC__/Admin/css/font-awesome.4.6.0.css" rel="stylesheet"><!-- FONT AWESOME ICON STYLESHEET -->
      <link rel="stylesheet" href="__PUBLIC__/Admin/assets/data-tables/DT_bootstrap.css"><!-- DATATABLE CSS -->
      <link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet"><!-- THEME BASIC CSS -->
      <link href="__PUBLIC__/Admin/css/style-responsive.css" rel="stylesheet"><!-- THEME BASIC RESPONSIVE  CSS -->
       <link href="__PUBLIC__/Admin/layui/src/css/layui.css" rel="stylesheet">
      <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
      <![endif]-->
	  <!-- END STYLESHEET --> 
   </head>
   <body>
   <!-- BEGIN SECTION --> 
      <section id="container" class="">
	    <!-- BEGIN HEADER --> 
         <header class="header white-bg">
         <!-- SIDEBAR TOGGLE BUTTON -->
			<div class="sidebar-toggle-box">
			  <div  data-placement="right" class="fa fa-bars tooltips">
			  </div>
			</div>
        <!-- SIDEBAR TOGGLE BUTTON  END-->
            <a href="{:U('Admin/Index/index')}" class="logo">会议列表</a>
           <!-- START HEADER  NAV -->
        
        <nav class="nav notify-row" id="top_menu">

          
        </nav>
        
        <!-- END HEADER NAV -->
        
        
        <!-- START USER LOGIN DROPDOWN  -->
            <div class="top-nav ">
               <ul class="nav pull-right top-menu">
                
                  <li class="dropdown">
                     <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                     <span class="username">退出</span>
                     </a>
                  </li>
               </ul>
            </div>
			<!-- END USER LOGIN DROPDOWN  -->
         </header>
		 <!-- END HEADER --> 
		 
		 <!-- BEGIN SIDEBAR --> 
         <aside>
            <div id="sidebar" class="nav-collapse">
               <ul class="sidebar-menu" id="nav-accordion">
                  <li>
                     <a href="{:U('Admin/Index/index')}">
                     <i class="fa fa-dashboard"></i>
                     <span>会议室添加</span>
                     </a>
                  </li>
                   <li>
                     <a href="{:U('Admin/Index/lists')}">
                     <i class="fa fa-dashboard"></i>
                     <span>会议室列表</span>
                     </a>
                  </li>
               </ul>
            </div>
         </aside>
		 <!-- END SIDEBAR --> 
		 
		 <!-- BEGIN MAIN CONTENT --> 
         <section id="main-content">
		    <!-- BEGIN WRAPPER  -->
            <section class="wrapper site-min-height">
               <section class="panel">
                  <header class="panel-heading">
                     <span class="label label-primary">编辑会议室</span>
                     <span class="tools pull-right">
                     <a href="javascript:;" class="fa fa-chevron-down"></a>
                     </span>
                  </header>
                  <div class="panel-body">
                        <table class="table table-striped table-hover table-bordered" >
                           <thead>
                              <tr>
                                 <th>名称</th>
                                 <th>地点</th>
                                 <th>人数</th>
                                 <th>状态</th>
                                 <th>备注</th>
                                 <th>会议室可用时间</th>
                                 <th>更改状态</th>
                                 <th>编辑</th>
                                 <th>删除</th>
                              </tr>
                           </thead>
                           <tbody>
                            <?php foreach($data as $k => $v){?>
                              <tr class="">
                                 <td><?php echo $v['name']; ?></td>
                                 <td class="hidden-phone"><?php echo $v['site']; ?></td>
                                 <td class="hidden-phone"><?php echo $v['contain_body']; ?></td>
                                  <td class="center hidden-phone"><?php if($v['type'] == 1){echo '可用';}else{echo '不可用';} ;?></td>
                                  <td class="center hidden-phone"><?php echo $v['intro']; ?></td>
                                   <td class="center hidden-phone"><?php echo $v['use_time']; ?></td>
                                    <td class="center hidden-phone"><button class="btn btn-xs btn-info" type="button">开启</button></td>
                                 <td><a class="edit" href="{:U('Admin/Index/edit',array('id'=>$v['id']))}"><span class="label label-success">编辑</span></a></td>
                                 <td><a class="delete" href="javascript:;"><span class="label label-danger" title1='<?php echo $v['id'];?>'>删除</span></a></td>
                              </tr>
                              <?php }?>
                           </tbody>
                        </table>
                     </div>
                  </div>
               </section>
            </section>
			<!-- END WRAPPER  -->
         </section>
		 <!-- END MAIN CONTENT --> 
		 <!-- BEGIN FOOTER --> 
         <footer class="site-footer">
            <div class="text-center">
                              2017 &copy; 会以助手 <a href="" target="_blank">会议管理助手</a>
               <a href="#" class="go-top">
               <i class="fa fa-angle-up"></i>
               </a>
            </div>
         </footer>
		 <!-- END FOOTER --> 
      </section>
	  <!-- END SECTION -->

<!-- BEGIN JS --> 	  
		<script src="__PUBLIC__/Admin/js/jquery-1.8.3.min.js" ></script><!-- BASIC JS LIABRARY 1.8.3 -->
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js" ></script><!-- BOOTSTRAP JS  -->
		<script src="__PUBLIC__/Admin/js/jquery.dcjqaccordion.2.7.js"></script><!-- ACCORDING JS -->
		<script src="__PUBLIC__/Admin/js/jquery.scrollTo.min.js" ></script><!-- SCROLLTO JS  -->
		<script src="__PUBLIC__/Admin/js/jquery.nicescroll.js" > </script><!-- NICESCROLL JS  -->
		<script src="__PUBLIC__/Admin/assets/data-tables/jquery.dataTables.js"></script><!-- DATATABLE JS  -->
		<script src="__PUBLIC__/Admin/assets/data-tables/DT_bootstrap.js"></script><!-- DATATABLE JS  -->
		<script src="__PUBLIC__/Admin/js/respond.min.js" ></script><!-- RESPOND JS  -->
		<script src="__PUBLIC__/Admin/js/common-scripts.js" ></script><!-- BASIC COMMON JS  -->
		<script src="__PUBLIC__/Admin/js/editable-table.js" ></script><!-- EDITABLE TABLE JS  -->
          



           <script src="js/jquery.js" ></script><!-- BASIC JS LIABRARY -->
    <script src="__PUBLIC__/Admin/js/bootstrap.min.js" ></script><!-- BOOTSTRAP JS  -->
    <script src="__PUBLIC__/Admin/js/jquery.dcjqaccordion.2.7.js"></script><!-- ACCORDING JS -->
    <script src="__PUBLIC__/Admin/js/jquery.scrollTo.min.js" ></script><!-- SCROLLTO JS  -->
    <script src="__PUBLIC__/Admin/js/jquery.nicescroll.js" > </script><!-- NICESCROLL JS  -->
    <script src="__PUBLIC__/Admin/js/respond.min.js" ></script><!-- RESPOND JS  -->
    <script src="__PUBLIC__/Admin/assets/fuelux/js/spinner.min.js"></script><!-- FUELUX JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-fileupload/bootstrap-fileupload.js"></script><!-- BOOTSTRAP FILEUPLOAD JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-wysihtml5/wysihtml5-0.3.0.js"></script><!-- BOOTSTRAP wysihtml5 JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-wysihtml5/bootstrap-wysihtml5.js"></script><!-- BOOTSTRAP wysihtml5 JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script><!-- BOOTSTRAP DATEPICKER JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script><!-- BOOTSTRAP DATETIMEPICKER JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-daterangepicker/moment.min.js"></script>
    <script src="__PUBLIC__/Admin/assets/bootstrap-daterangepicker/daterangepicker.js"></script><!-- BOOTSTRAP DATERANGEPICKER JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-colorpicker/js/bootstrap-colorpicker.js"> </script><!-- BOOTSTRAP COLORPICKER JS  -->
    <script src="__PUBLIC__/Admin/assets/bootstrap-timepicker/js/bootstrap-timepicker.js"></script><!-- BOOTSTRAP TIMEPICKER JS  -->
    <script src="__PUBLIC__/Admin/assets/jquery-multi-select/js/jquery.multi-select.js"></script><!-- BOOTSTRAP MULTISELECT JS  -->
    <script src="__PUBLIC__/Admin/assets/jquery-multi-select/js/jquery.quicksearch.js"></script><!-- BOOTSTRAP MULTISELECT JS  -->
    <script src="__PUBLIC__/Admin/js/common-scripts.js" ></script><!-- BASIC COMMON JS  -->
    <script src="__PUBLIC__/Admin/js/advanced-form-components.js" ></script><!-- ADVANCE FORM COMPONENTS PAGE JS  -->
    <script src="__PUBLIC__/Admin/assets/ckeditor/ckeditor.js"></script><!-- CKEDITOR JS  -->
    <script src="__PUBLIC__/Admin/layer/layer/layer.js" ></script><!-- JQUERY KNOB JS -->
   
      <script >
        $(function(){

            function trim(str){ 
            　　     return str.replace(/(^\s*)|(\s*$)/g, "");
            }



        $('.label-danger').each(function(){
          $(this).click(function(){
             var id = $(this).attr('title1');
            layer.confirm('您确定要删除这条记录么', {
              btn: ['确定','取消'] //按钮
            }, function(){
               $.get("{:U('Admin/Index/del')}",{'id':id},function(e){
                         if(e == 1){
                           layer.msg('删除成功', {icon: 1});
                           location.href =  location.href;
                         }else{
                           layer.msg('删除失败', {icon: 1});
                         }
                        })
            }, function(){
            });
          })
        })

        })
      </script>
	  <!-- END JS --> 
   </body>
</html>


